import { http } from "@/utils/request";

/**
 * 加入课程
 * @param {} data 
 * @returns 
 */
export const joinCourse = (data) => {
	return http({
		method: 'post',
		url: `/stu/joinCourse`,
        data
	});
};
/**
 * 课程列表
 * @param {} data 
 * @returns 
 */
export const getCourseList = () => {
	return http({
		method: 'get',
		url: `/course/list`,
	});
};
/**
 * 获得学生课程记录列表
 * @param {} data 
 * @returns 
 */
export const getRecordByStuIdAndCourseId = (data) => {
	return http({
		method: 'get',
		url: `/stu/getRecordByStuIdAndCourseId`,
		data
	});
};